package alcatraz.common;

//import java.net.InetAddress;
import java.io.Serializable;

/**
 *
 * @author andreas
 */
public class PlayerData implements IAlcatraz, Serializable {

    public PlayerData(ClientState state) {
        this.state = state;
    }

//    /** defines state of Player */
//    public static enum Status {
//        /** player es no contection to Server (registry phase)
//         or player es no contection to Startplayer (game phase) */
//        DISCONNECTED,
//        /** player not ready (but connected) */
//        NOT_READY,
//        /** player not ready (and connected) */
//        READY,
//        /** undefined (unvalid) status */
//        UNDEFINED
//    }

    private ClientState state = ClientState.INIT;
    private IAlcatrazClient clientStub = null;
    private int playerID = -1;      // unvalid ID (valid 0..3)
    private String nickName = "";   // nickname empty but exist

    public ClientState getState() {
        return state;
    }

    public void setState(ClientState state) {
        this.state = state;
    }

    public IAlcatrazClient getClientStub() {
        return clientStub;
    }

    public void setClientStub(IAlcatrazClient clientStub) {
        this.clientStub = clientStub;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getPlayerID() {
        return playerID;
    }

    public void setPlayerID(int playerID) {
        this.playerID = playerID;
    }


}
